﻿using System;

namespace HML
{
    /// <summary>
    /// TabItem自定义按钮操作事件参数
    /// </summary>
    public class TabItemCustomButttonOperatedEventArgs : EventArgs
    {
        private readonly TabPagePlus tabPage;
        /// <summary>
        /// 自定义按钮所属的TabPage
        /// </summary>
        public TabPagePlus TabPage
        {
            get { return this.tabPage; }
        }

        private readonly TabItemCustomButton customButton;
        /// <summary>
        /// 自定义按钮
        /// </summary>
        public TabItemCustomButton CustomButton
        {
            get { return this.customButton; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="tabPage">当前单击的TabPageBaseExt</param>
        /// <param name="customButton">当前单击的自定义按钮</param>
        public TabItemCustomButttonOperatedEventArgs(TabPagePlus tabPage, TabItemCustomButton customButton)
        {
            this.tabPage = tabPage;
            this.customButton = customButton;
        }

    }

}
